export const crudOptions = vm => {
  return {
    indexRow: {
      title: '序号',
      align: 'center'
    },
    options: {
      height: '100%'
    },
    columns: [
      {
        title: '献血志愿者',
        key: 'volunteerName',
        align: 'center'
      },
      {
        title: '血型',
        key: 'bloodType',
        align: 'center'
      },
      {
        title: '血量(mm)',
        key: 'bloodVolume',
        align: 'center'
      },
      {
        title: '采血者',
        key: 'drawer',
        align: 'center'
      },
      {
        title: '采血日期',
        key: 'drawDate',
        align: 'center'
      },
      {
        title: '有效期至',
        key: 'expireDate',
        align: 'center'
      },
      {
        title: '有效天数',
        key: 'shelfLife',
        align: 'center'
      },
      {
        title: '是否合格',
        key: 'isQualified',
        align: 'center'
      },
      {
        title: '是否过期',
        key: 'isOutdated',
        align: 'center'
      },
      {
        title: '备注',
        key: 'remark',
        align: 'center'
      }
    ],
    rowHandle: {
      align: 'center',
      view: false,
      edit: false,
      remove: false,
      custom: [
        {
          width: 350,
          thin: false,
          text: '丢弃',
          type: 'danger',
          icon: 'el-icon-edit',
          size: 'small',
          show: true,
          disabled: false,
          order: 1,
          emit: 'drop'
        }
      ]
    }
  }
}
